home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 35
/
035.d81
/
cave of reaper
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
31KB
|
831 lines
10 dimvt$(25),ht$(40)
12 vt$(1)="":ht$(1)=""
14 forx=2to25:vt$(x)=vt$(x-1)+"":ht$(x)=ht$(x-1)+"":nextx
15 forx=26to40:ht$(x)=ht$(x-1)+"":next
16 :
20 gosub3810:goto170
30 printvt$(24)ht$(10)"<--- [208]ress a key --->";:poke198,0:wait198,1:geta$
31 return
40 v=peek(214):printvt$(1)"[211][195][207][210][197]:"se"[157] [207][213][212][160][207][198] 100 [208][207][211][211][201][194][204][197]":printvt$(v);:return
50 h=(40-len(a$))/2:printht$(h)""a$:print"[146]":return
60 remthisprogramis
70 remdedicatedtostevejobs
80 rem
90 rem***********************
100 rem*caveofthereaper*
110 rem*by:*
120 rem*steveshelton*
130 rem***********************
140 rem
150 remgame(c)may-june,1985
160 rem
170 rb=0:rd=15:fl=1:kf=1:f1=0:q$=chr$(34)
180 goto430
190 gosub3670:print">";:gosub 5000:mv=mv+1:cm=0
195 ifleft$(c$,3)="use"thencm=2
200 ifleft$(c$,1)="l"orleft$(c$,4)="look"thencm=7
210 ifleft$(c$,1)="s"thencm=3
220 ifleft$(c$,1)="n"thencm=4
230 ifleft$(c$,1)="e"thencm=5
240 ifleft$(c$,1)="w"thencm=6
250 ifleft$(c$,3)="get"thencm=9
260 ifleft$(c$,4)="quit"thengosub4820
270 ifleft$(c$,9)="drop dead"thenprint"[207]kay.":goto3660
280 ifleft$(c$,4)="bull"thenprint"[205]oo!":goto190
290 ifcm<>2thengoto390
300 ud=0:ifleft$(c$,8)="use pick"thenud=1
310 ag=0:ifleft$(c$,14)="use pogo stick"orleft$(c$,13)="use pogostick"thenag=1
311 ifleft$(c$,14)="use pogo-stick"thenag=1
312 ifag=1thenud=2:ifrm<>7andps>0thenprint"[215][200][197][197][197][197]!!!!"
320 ag=0:ifleft$(c$,14)="use flashlight"orleft$(c$,15)="use flash light"thenag=1
321 ifleft$(c$,15)="use flash-light"thenag=1
322 ifag=1thenud=6:gosub3780
330 ifleft$(c$,10)="use shield"thenud=3
340 ifleft$(c$,13)="use medallion"thenud=4
350 ifleft$(c$,9)="use knife"orleft$(c$,10)="use dagger"thenud=5
360 ag=0:ifleft$(c$,14)="use stalagtite"orleft$(c$,8)="use rock"thenag=1
361 ifleft$(c$,23)="use piece of stalagtite"thenag=1
362 ifag=1thenud=7
370 ifud=0thenprint"[215]hat?":goto190
371 ifrb=90thenprint"succumbed to the poison.":goto3800
380 goto3470:rem
390 ifleft$(c$,1)="i"thengoto3570
400 ifc$=""thengoto190
410 ifcm=0thenprint"[211]ay what?!?!?!?":goto190
420 return
430 print"[147][144]"spc(11)"[195]ave of the [210]eaper":poke53280,6:poke53281,5
431 print""spc(12)"by [211]teve [211]helton"
432 print""spc(4)"[195]-64 translation by [193]lan [199]ardner"
433 print" [204][207][193][196][211][212][193][210][160]is not public domain."
434 print" [208]lease respect the author's rights."
439 print" [196]o you need instructions ([217]/[206])?"
440 poke198,0:wait198,1:geta$
445 ifa$="[217]"ora$="y"thengosub3830:goto465
450 ifa$="[206]"ora$="n"thenprint"[147]":gosub3760:goto465
460 goto440
465 poke770,131:poke771,164
466 poke88,0:poke89,192:poke90,0:poke91,192:poke781,33:poke782,0:sys41964
467 poke88,254:poke89,255:poke90,254:poke91,255:poke781,33:poke782,0:sys41964
468 poke59639,6:poke1,53
470 rem*location#1
480 rm=1:a$="---> [210][207][207][205] # 1 <---":gosub50
482 print" [201]t's almost too dark to see.":print"[193] certain amount of light is coming"
490 print"through the blocked entrance, but":
492 print"shadows dominate the scene. [212]here are"
493 print"exits in every direction but west, "
500 print"where the entrance lies."
510 gosub190:ifcm=2andud<>6thenprint"[206]othing happens."
520 ifcm=9thenprint"[212]his room is empty."
530 ifcm=7then470
540 ifcm=3thenlc=13:goto1980
550 ifcm=4thenlc=11:goto1750
560 ifcm=5thenlc=2:goto600
570 ifcm=7thengoto470
580 ifcm=6thenprint"[212]he entrance is still caved in!"
590 goto510
600 rem*location#2
610 rm=2:a$="---> [210][207][207][205] # 2 <---":gosub50:
611 print" [212]he meager light from the cave mouth"
612 print"makes eerie shadows on the stalagtites,"
613 print"which seem ready to fall at any moment."
614 print" [212]his room appears to be empty. [212]here"
620 print"are side passages straight ahead and to"
621 print"the south. [212]he cave entrance is to the"
622 print"west. [212]he light dwindles to the east."
630 gosub190:ifcm=2andud<>6thenprint"[206]o effect."
640 ifcm=3thenlc=6:goto3060
650 ifcm=4thenprint"[217]ou cannot go in that direction."
660 ifcm=5thenlc=3:goto710
670 ifcm=6thenlc=1:goto470
680 ifcm=7thengoto600
690 ifcm=9thenprint"[212]his room is empty."
700 goto630
710 rem*location#3
720 rm=3:print:a$="---> [210][207][207][205] # 3 <---":gosub50
722 iff1=0thenprint"[201]t's too dark to see, but you hear a "
723 iff1=0thenprint"soft rustling sound.":goto740
730 print" [212]his room contains rattlesnakes"
731 print"moving sluggishly because of the cool"
732 print"temperature of the caverns."
733 print" [212]here are rooms to the east and west.":print
740 gosub190:ifcm=2andud=6then710
750 ifcm=2thenprint"[206]o effect."
760 ifcm=3thenprint"[212]here is no door there."
770 ifcm=5thenlc=4:goto840
780 ifcm=4thenprint"[217]ou can't go that direction."
790 ifcm=6thenlc=2:goto600
800 ifcm=7thengoto710
810 ifcm<>9orrb<=0then820
811 print"[217]ou really [196][207] learn slowly - another "
812 print"snake has bitten you. [217]ou have no"
813 print"chance to escape the caverns before"
814 print"the poison becomes fatal, so [201]'ll save"
815 print"time and just say that...":goto3660
820 ifcm=9thenprint"[193] rattlesnake is not a good object to"
821 ifcm=9thenprint"pick up. [217]ou learned too slowly - one"
822 ifcm=9thenprint"bites you. [217]ou'd better get out of"
823 ifcm=9thenprint"these caverns very quickly - that":print"poison acts fast!":rb=1
830 goto740
840 rem*location#4
850 rm=4:a$="---> [210][207][207][205] # 4 <---":gosub50
851 iff1<1thenprint" [201]t's too dark to see.":goto900
860 print" [212]his room is quite damp, and there is"
861 print"a loud sound like running water forever"
862 print" echoing in the dark chamber."
870 ifps<1thenprint" [198]or some reason, there is a pogo"
872 ifps<1thenprint"stick on the floor, but what it's doing"
873 ifps<1thenprint"here, [201] couldn't tell you."
880 ifps>0thenprint" [212]his room is empty."
890 print" [212]here are exits to the east and west.":print
900 gosub190:ifcm=2andud=6thengoto840
910 ifcm=2thenprint"[206]o effect."
920 ifcm=9andps<1thenprint"[215]ell, you've got it. [201] don't know why"
921 ifcm=9andps<1thenprint"you want it, though!":ps=1:goto900
930 ifcm=9thenprint"[206]othing here."
940 ifcm=3orcm=4thenprint"[217]ou can't go that way!"
950 ifcm=4thenprint"[217]ou can't go that way!"
960 ifcm=6thenlc=3:goto710
970 ifcm=5thenlc=5:goto1000
980 ifcm=7then840
990 goto900
1000 rem*location#5
1010 rm=5:a$="---> [210][207][207][205] # 5 <---":gosub50
1011 iff1<1thenprint"[201]t's too dark to see, but from the"
1012 iff1<1thenprint"sound of it, there must be a pretty"
1013 iff1<1thenprint"strong river running through here.":goto1030
1020 print" [212]his room would make a good painting."
1021 print"[145][212]o the east a picturesque waterfall"
1022 print"goes nearly 300 feet into a roaring"
1023 print"river.":print" [212]here is an exit to the west."
1030 gosub190:ifcm=4orcm=3thenprint"[217]ou can't go that way."
1040 ifcm=5thenprint"[217]ou fall into the river and drown,"
1041 ifcm=5thenprint"which means that...":goto3660
1050 ifcm=6thenlc=4:goto840
1060 ifcm=2andf1=1andud=6then1000
1070 ifcm=2thenprint"[206]othing happens."
1080 ifcm=9thenprint"[206]othing here."
1090 ifcm=7thengoto1000
1100 goto1030
1110 rm=7:a$="---> [210][207][207][205] # 7 <---":gosub50
1111 iff1<1thenprint" [201]t's too dark to see. [200]ey, is that"
1112 iff1<1thenprint"a light off to the east?!?!?!?":goto1140
1120 print" [212]his room is long, with two gorges"
1121 print"between you and the eastern exit. [212]he"
1122 print"first is about fifty feet wide, but"
1123 print"the second is only ten feet wide."
1124 print"[212]here is a light to the east --"
1125 print"another way out"
1130 print"maybe? [212]here is an exit to the west."
1140 gosub190:ifcm=2andud<>2andud<>6thenprint"[206]othing happens."
1150 ifcm=2andud=6then1110
1160 ifcm<>2orud<>2then1170
1161 print"[217]ou bounce hard, and get about half-"
1162 print"way across the canyon, but don't quite"
1164 print"make it. [217]ou don't even hit bottom for"
1165 print"three days.":goto3660
1170 ifcm=4orcm=3thenprint"[217]ou can't go that w